Integrand size = 14, antiderivative size = 85 \[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx=\frac {2 a b \sqrt {x}}{c}+\frac {2 b^2 \sqrt {x} \text {arctanh}\left (c \sqrt {x}\right )}{c}-\frac {\left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2}{c^2}+x \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2+\frac {b^2 \log \left (1-c^2 x\right )}{c^2} \]
-(a+b*arctanh(c*x^(1/2)))^2/c^2+x*(a+b*arctanh(c*x^(1/2)))^2+b^2*ln(-c^2*x +1)/c^2+2*a*b*x^(1/2)/c+2*b^2*arctanh(c*x^(1/2))*x^(1/2)/c
Time = 0.04 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.35 \[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx=\frac {2 a b c \sqrt {x}+a^2 c^2 x+2 b c \left (b+a c \sqrt {x}\right ) \sqrt {x} \text {arctanh}\left (c \sqrt {x}\right )+b^2 \left (-1+c^2 x\right ) \text {arctanh}\left (c \sqrt {x}\right )^2+b (a+b) \log \left (1-c \sqrt {x}\right )-a b \log \left (1+c \sqrt {x}\right )+b^2 \log \left (1+c \sqrt {x}\right )}{c^2} \]
(2*a*b*c*Sqrt[x] + a^2*c^2*x + 2*b*c*(b + a*c*Sqrt[x])*Sqrt[x]*ArcTanh[c*S qrt[x]] + b^2*(-1 + c^2*x)*ArcTanh[c*Sqrt[x]]^2 + b*(a + b)*Log[1 - c*Sqrt [x]] - a*b*Log[1 + c*Sqrt[x]] + b^2*Log[1 + c*Sqrt[x]])/c^2
Time = 0.50 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.13, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {6442, 6452, 6542, 2009, 6510}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx\) |
\(\Big \downarrow \) 6442 |
\(\displaystyle 2 \int \sqrt {x} \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2d\sqrt {x}\) |
\(\Big \downarrow \) 6452 |
\(\displaystyle 2 \left (\frac {1}{2} x \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2-b c \int \frac {x \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )}{1-c^2 x}d\sqrt {x}\right )\) |
\(\Big \downarrow \) 6542 |
\(\displaystyle 2 \left (\frac {1}{2} x \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2-b c \left (\frac {\int \frac {a+b \text {arctanh}\left (c \sqrt {x}\right )}{1-c^2 x}d\sqrt {x}}{c^2}-\frac {\int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )d\sqrt {x}}{c^2}\right )\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 2 \left (\frac {1}{2} x \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2-b c \left (\frac {\int \frac {a+b \text {arctanh}\left (c \sqrt {x}\right )}{1-c^2 x}d\sqrt {x}}{c^2}-\frac {a \sqrt {x}+b \sqrt {x} \text {arctanh}\left (c \sqrt {x}\right )+\frac {b \log \left (1-c^2 x\right )}{2 c}}{c^2}\right )\right )\) |
\(\Big \downarrow \) 6510 |
\(\displaystyle 2 \left (\frac {1}{2} x \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2-b c \left (\frac {\left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2}{2 b c^3}-\frac {a \sqrt {x}+b \sqrt {x} \text {arctanh}\left (c \sqrt {x}\right )+\frac {b \log \left (1-c^2 x\right )}{2 c}}{c^2}\right )\right )\) |
2*((x*(a + b*ArcTanh[c*Sqrt[x]])^2)/2 - b*c*((a + b*ArcTanh[c*Sqrt[x]])^2/ (2*b*c^3) - (a*Sqrt[x] + b*Sqrt[x]*ArcTanh[c*Sqrt[x]] + (b*Log[1 - c^2*x]) /(2*c))/c^2))
3.2.98.3.1 Defintions of rubi rules used
Int[((a_.) + ArcTanh[(c_.)*(x_)^(n_)]*(b_.))^(p_), x_Symbol] :> With[{k = D enominator[n]}, Simp[k Subst[Int[x^(k - 1)*(a + b*ArcTanh[c*x^(k*n)])^p, x], x, x^(1/k)], x]] /; FreeQ[{a, b, c}, x] && IGtQ[p, 1] && FractionQ[n]
Int[((a_.) + ArcTanh[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] : > Simp[x^(m + 1)*((a + b*ArcTanh[c*x^n])^p/(m + 1)), x] - Simp[b*c*n*(p/(m + 1)) Int[x^(m + n)*((a + b*ArcTanh[c*x^n])^(p - 1)/(1 - c^2*x^(2*n))), x ], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0] && (EqQ[p, 1] || (EqQ[n, 1 ] && IntegerQ[m])) && NeQ[m, -1]
Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)^2), x_Symb ol] :> Simp[(a + b*ArcTanh[c*x])^(p + 1)/(b*c*d*(p + 1)), x] /; FreeQ[{a, b , c, d, e, p}, x] && EqQ[c^2*d + e, 0] && NeQ[p, -1]
Int[(((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_))/((d_) + ( e_.)*(x_)^2), x_Symbol] :> Simp[f^2/e Int[(f*x)^(m - 2)*(a + b*ArcTanh[c* x])^p, x], x] - Simp[d*(f^2/e) Int[(f*x)^(m - 2)*((a + b*ArcTanh[c*x])^p/ (d + e*x^2)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && GtQ[p, 0] && GtQ[m, 1]
Leaf count of result is larger than twice the leaf count of optimal. \(212\) vs. \(2(75)=150\).
Time = 7.61 (sec) , antiderivative size = 213, normalized size of antiderivative = 2.51
method | result | size |
parts | \(a^{2} x +\frac {2 b^{2} \left (\frac {c^{2} x \operatorname {arctanh}\left (c \sqrt {x}\right )^{2}}{2}+\operatorname {arctanh}\left (c \sqrt {x}\right ) c \sqrt {x}+\frac {\operatorname {arctanh}\left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}-1\right )}{2}-\frac {\operatorname {arctanh}\left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}+\frac {\ln \left (c \sqrt {x}-1\right )^{2}}{8}-\frac {\ln \left (c \sqrt {x}-1\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {\ln \left (c \sqrt {x}-1\right )}{2}+\frac {\ln \left (1+c \sqrt {x}\right )}{2}-\frac {\left (\ln \left (1+c \sqrt {x}\right )-\ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {\ln \left (1+c \sqrt {x}\right )^{2}}{8}\right )}{c^{2}}+\frac {4 a b \left (\frac {c^{2} x \,\operatorname {arctanh}\left (c \sqrt {x}\right )}{2}+\frac {c \sqrt {x}}{2}+\frac {\ln \left (c \sqrt {x}-1\right )}{4}-\frac {\ln \left (1+c \sqrt {x}\right )}{4}\right )}{c^{2}}\) | \(213\) |
derivativedivides | \(\frac {a^{2} c^{2} x +2 b^{2} \left (\frac {c^{2} x \operatorname {arctanh}\left (c \sqrt {x}\right )^{2}}{2}+\operatorname {arctanh}\left (c \sqrt {x}\right ) c \sqrt {x}+\frac {\operatorname {arctanh}\left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}-1\right )}{2}-\frac {\operatorname {arctanh}\left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}+\frac {\ln \left (c \sqrt {x}-1\right )^{2}}{8}-\frac {\ln \left (c \sqrt {x}-1\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {\ln \left (c \sqrt {x}-1\right )}{2}+\frac {\ln \left (1+c \sqrt {x}\right )}{2}-\frac {\left (\ln \left (1+c \sqrt {x}\right )-\ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {\ln \left (1+c \sqrt {x}\right )^{2}}{8}\right )+4 a b \left (\frac {c^{2} x \,\operatorname {arctanh}\left (c \sqrt {x}\right )}{2}+\frac {c \sqrt {x}}{2}+\frac {\ln \left (c \sqrt {x}-1\right )}{4}-\frac {\ln \left (1+c \sqrt {x}\right )}{4}\right )}{c^{2}}\) | \(215\) |
default | \(\frac {a^{2} c^{2} x +2 b^{2} \left (\frac {c^{2} x \operatorname {arctanh}\left (c \sqrt {x}\right )^{2}}{2}+\operatorname {arctanh}\left (c \sqrt {x}\right ) c \sqrt {x}+\frac {\operatorname {arctanh}\left (c \sqrt {x}\right ) \ln \left (c \sqrt {x}-1\right )}{2}-\frac {\operatorname {arctanh}\left (c \sqrt {x}\right ) \ln \left (1+c \sqrt {x}\right )}{2}+\frac {\ln \left (c \sqrt {x}-1\right )^{2}}{8}-\frac {\ln \left (c \sqrt {x}-1\right ) \ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {\ln \left (c \sqrt {x}-1\right )}{2}+\frac {\ln \left (1+c \sqrt {x}\right )}{2}-\frac {\left (\ln \left (1+c \sqrt {x}\right )-\ln \left (\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )\right ) \ln \left (-\frac {c \sqrt {x}}{2}+\frac {1}{2}\right )}{4}+\frac {\ln \left (1+c \sqrt {x}\right )^{2}}{8}\right )+4 a b \left (\frac {c^{2} x \,\operatorname {arctanh}\left (c \sqrt {x}\right )}{2}+\frac {c \sqrt {x}}{2}+\frac {\ln \left (c \sqrt {x}-1\right )}{4}-\frac {\ln \left (1+c \sqrt {x}\right )}{4}\right )}{c^{2}}\) | \(215\) |
a^2*x+2*b^2/c^2*(1/2*c^2*x*arctanh(c*x^(1/2))^2+arctanh(c*x^(1/2))*c*x^(1/ 2)+1/2*arctanh(c*x^(1/2))*ln(c*x^(1/2)-1)-1/2*arctanh(c*x^(1/2))*ln(1+c*x^ (1/2))+1/8*ln(c*x^(1/2)-1)^2-1/4*ln(c*x^(1/2)-1)*ln(1/2*c*x^(1/2)+1/2)+1/2 *ln(c*x^(1/2)-1)+1/2*ln(1+c*x^(1/2))-1/4*(ln(1+c*x^(1/2))-ln(1/2*c*x^(1/2) +1/2))*ln(-1/2*c*x^(1/2)+1/2)+1/8*ln(1+c*x^(1/2))^2)+4*a*b/c^2*(1/2*c^2*x* arctanh(c*x^(1/2))+1/2*c*x^(1/2)+1/4*ln(c*x^(1/2)-1)-1/4*ln(1+c*x^(1/2)))
Leaf count of result is larger than twice the leaf count of optimal. 165 vs. \(2 (75) = 150\).
Time = 0.27 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.94 \[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx=\frac {4 \, a^{2} c^{2} x + 8 \, a b c \sqrt {x} + {\left (b^{2} c^{2} x - b^{2}\right )} \log \left (-\frac {c^{2} x + 2 \, c \sqrt {x} + 1}{c^{2} x - 1}\right )^{2} + 4 \, {\left (a b c^{2} - a b + b^{2}\right )} \log \left (c \sqrt {x} + 1\right ) - 4 \, {\left (a b c^{2} - a b - b^{2}\right )} \log \left (c \sqrt {x} - 1\right ) + 4 \, {\left (a b c^{2} x - a b c^{2} + b^{2} c \sqrt {x}\right )} \log \left (-\frac {c^{2} x + 2 \, c \sqrt {x} + 1}{c^{2} x - 1}\right )}{4 \, c^{2}} \]
1/4*(4*a^2*c^2*x + 8*a*b*c*sqrt(x) + (b^2*c^2*x - b^2)*log(-(c^2*x + 2*c*s qrt(x) + 1)/(c^2*x - 1))^2 + 4*(a*b*c^2 - a*b + b^2)*log(c*sqrt(x) + 1) - 4*(a*b*c^2 - a*b - b^2)*log(c*sqrt(x) - 1) + 4*(a*b*c^2*x - a*b*c^2 + b^2* c*sqrt(x))*log(-(c^2*x + 2*c*sqrt(x) + 1)/(c^2*x - 1)))/c^2
\[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx=\int \left (a + b \operatorname {atanh}{\left (c \sqrt {x} \right )}\right )^{2}\, dx \]
Leaf count of result is larger than twice the leaf count of optimal. 175 vs. \(2 (75) = 150\).
Time = 0.20 (sec) , antiderivative size = 175, normalized size of antiderivative = 2.06 \[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx={\left (c {\left (\frac {2 \, \sqrt {x}}{c^{2}} - \frac {\log \left (c \sqrt {x} + 1\right )}{c^{3}} + \frac {\log \left (c \sqrt {x} - 1\right )}{c^{3}}\right )} + 2 \, x \operatorname {artanh}\left (c \sqrt {x}\right )\right )} a b + \frac {1}{4} \, {\left (4 \, c {\left (\frac {2 \, \sqrt {x}}{c^{2}} - \frac {\log \left (c \sqrt {x} + 1\right )}{c^{3}} + \frac {\log \left (c \sqrt {x} - 1\right )}{c^{3}}\right )} \operatorname {artanh}\left (c \sqrt {x}\right ) + 4 \, x \operatorname {artanh}\left (c \sqrt {x}\right )^{2} - \frac {2 \, {\left (\log \left (c \sqrt {x} - 1\right ) - 2\right )} \log \left (c \sqrt {x} + 1\right ) - \log \left (c \sqrt {x} + 1\right )^{2} - \log \left (c \sqrt {x} - 1\right )^{2} - 4 \, \log \left (c \sqrt {x} - 1\right )}{c^{2}}\right )} b^{2} + a^{2} x \]
(c*(2*sqrt(x)/c^2 - log(c*sqrt(x) + 1)/c^3 + log(c*sqrt(x) - 1)/c^3) + 2*x *arctanh(c*sqrt(x)))*a*b + 1/4*(4*c*(2*sqrt(x)/c^2 - log(c*sqrt(x) + 1)/c^ 3 + log(c*sqrt(x) - 1)/c^3)*arctanh(c*sqrt(x)) + 4*x*arctanh(c*sqrt(x))^2 - (2*(log(c*sqrt(x) - 1) - 2)*log(c*sqrt(x) + 1) - log(c*sqrt(x) + 1)^2 - log(c*sqrt(x) - 1)^2 - 4*log(c*sqrt(x) - 1))/c^2)*b^2 + a^2*x
\[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx=\int { {\left (b \operatorname {artanh}\left (c \sqrt {x}\right ) + a\right )}^{2} \,d x } \]
Time = 3.51 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.11 \[ \int \left (a+b \text {arctanh}\left (c \sqrt {x}\right )\right )^2 \, dx=a^2\,x+\frac {c\,\left (2\,b^2\,\sqrt {x}\,\mathrm {atanh}\left (c\,\sqrt {x}\right )+2\,a\,b\,\sqrt {x}\right )-b^2\,{\mathrm {atanh}\left (c\,\sqrt {x}\right )}^2+b^2\,\ln \left (c^2\,x-1\right )-2\,a\,b\,\mathrm {atanh}\left (c\,\sqrt {x}\right )}{c^2}+b^2\,x\,{\mathrm {atanh}\left (c\,\sqrt {x}\right )}^2+2\,a\,b\,x\,\mathrm {atanh}\left (c\,\sqrt {x}\right ) \]